package com.tang.common.exception;



/**
 * @author 唐朝阳
 */

public enum RecruitExceptionEnum {
    AUTH_LOSE(110,"您的权限已失效!请重新登录"),
    CAPTCHA_ERROR(120,"验证码错误"),
    USER_NOT_EXIST(130,"用户不存在"),
    USER_DISABLE(140,"账号已禁用"),
    ADMIN_NOT_ALLOW_LOGOUT(150,"admin账号不允许注销"),
    LOGOUT_FAILED(160,"注销失败"),
    USER_HAS_EXIST(170,"账号已存在"),
    TEL_HAS_USE(180,"该手机号已被其他人使用"),
    ADD_FAILED(190,"添加失败"),
    ADMIN_NOT_ALLOW_DELETE(200,"admin账号不允许删除"),
    DELETE_FAILED(210,"删除失败"),
    ADMIN_NOT_ALLOW_DISABLE(220,"admin账号不允许禁用"),
    HANDLE_FAILED(230,"操作失败"),
    UPDATE_FAILED(240,"修改失败"),
    OLDPASSWORD_ERROR(250,"原密码错误"),
    PARAMETER_ERROR(260,"请求参数错误"),
    NO_ENUM(270,"没有该枚举"),
    RESET_FAILED(280,"重置失败"),
    EMAIL_HAS_USE(290,"该邮箱已被其他人使用"),
    PASSWORD_FAILED(300,"密码错误"),
    QUERY_FAILED(310,"查询失败"),
    NO_DATA(320,"没有数据"),
    LESS_PARAMETER(330,"缺少参数"),
    AUDIT_FAILED(330,"审核失败"),
    LOGIN_FAILED(340,"登录失败！账号或密码错误"),
    TEL_FAILED(350,"该手机号未绑定该账号"),
    COMPANY_REGISTER(360,"该公司还未注册!请进行注册"),
    COMPANY_FAILED(360,"该公司已经注册!无需再次注册"),
    UPLOAD_FAILED(370,"上传失败"),
    SEND_FAILED(380,"发送失败"),
    APPOINT_FAILED(390,"预约失败"),
    NOT_AUIDT(400,"当前企业已上传注册信息，还未审核，请等待工作人员审核后进行操作"),
    DELIVER_FAILED(410,"投递失败"),
    HAS_DELIVER(420,"您已投递过该职位，请不要重复投递"),
    COLLECT_FAILED(430,"收藏失败"),
    HAS_COLLECT(440,"您已经收藏过，请不要重复收藏"),
    CREATE_FAILED(450,"开通失败"),
    PUBLISH_FAILED(460,"发布失败"),
    COMPANY_AUDIT(470,"注册公司审核还未通过，请先完成审核"),
    SYSTEM_ERROR(999,"系统异常");
    //异常状态码
    private Integer code;
    //异常信息
    private String msg;

    RecruitExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
